package view;

/**
 * Class to change a String to an int.
 * @author Sarah George
 * @version Autumn 2012
 */
public class StringToInt {
	
	/**
	 * Field to hold the int.
	 */
	private int my_int;
	
	/**
	 * Empty constructor for changing a String to an int.
	 */
	public StringToInt(){	
	}

	/**
	 * Method to convert a String to an int.
	 * @param the_string the String to be converted.
	 * @return my_int the int version of the String. 
	 */
	public int convert(String the_string) {
		my_int = Integer.parseInt(the_string);
		return my_int;
	}
}//End class String to int.